package com.koo.modules.sale.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-03-16 16:57:09
 */
@Data
@ApiModel("")
@TableName("sale_price_list")
public class SalePriceListEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId
    private Long priceListId;

    @ColumnWidth(11)
    @ExcelProperty("划价单号（HJ+三位数字）")
    @ApiModelProperty(value = "划价单号（HJ+三位数字）")
    private String priceListNo;

    @ColumnWidth(11)
    @ExcelProperty("划价单名称")
    @ApiModelProperty(value = "划价单名称")
    private String priceListName;

    @ColumnWidth(11)
    @ExcelProperty("主治功能")
    @ApiModelProperty(value = "主治功能")
    private String indicationDesc;

    @ColumnWidth(11)
    @ExcelProperty("处方单URL")
    @ApiModelProperty(value = "处方单URL")
    private String prescriptionUrl;

    @ColumnWidth(11)
    @ExcelProperty("审核人id")
    @ApiModelProperty(value = "审核人id")
    private Long auditUserId;

    @ColumnWidth(11)
    @ExcelProperty("审核人")
    @ApiModelProperty(value = "审核人")
    private String auditUser;

    @ColumnWidth(11)
    @ExcelProperty("审核状态:0未审核1已审核")
    @ApiModelProperty(value = "审核状态:0未审核1已审核")
    private Integer auditStatus;

    @ColumnWidth(11)
    @ExcelProperty("审核信息")
    @ApiModelProperty(value = "审核信息")
    private String auditNote;

    @ColumnWidth(11)
    @ExcelProperty("复核人id")
    @ApiModelProperty(value = "复核人id")
    private String reviewerId;

    @ColumnWidth(11)
    @ExcelProperty("复核人")
    @ApiModelProperty(value = "复核人")
    private String reviewer;

    @ColumnWidth(11)
    @ExcelProperty("复核状态:0未审核1已审核")
    @ApiModelProperty(value = "复核状态:0未审核1已审核")
    private Integer reviewStatus;

    @ColumnWidth(11)
    @ExcelProperty("复核信息")
    @ApiModelProperty(value = "复核信息")
    private String reviewNote;


    @ExcelIgnore
    @TableField(exist = false)
    private List<SalePriceListDetailEntity> itemList;

}
